<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
    var date=new Date(2019,5,1,8,0,0);
    console.log(date)
    var ms=date.valueOf();
    console.log(ms);
    var date1=new Date(ms)
    console.log(date1)
    </script>
</body>
</html>